package me.yobol.greentable.dao;

import java.sql.Connection;
import java.sql.SQLException;
import java.util.List;

import me.yobol.greentable.bean.CartCommodityBean;

/**
 * @author Yobol
 *
 */
public interface ICartCommodityDAO {
	
	public int save(Connection ctn,CartCommodityBean commodity) throws SQLException;
	
	public CartCommodityBean delete(Connection ctn,int commodityId) throws SQLException;
	
	public void updateQuantity(Connection ctn,int commodityId,int quantity) throws SQLException;

	public CartCommodityBean get(Connection ctn,int commodityId) throws SQLException;
	public CartCommodityBean getByIgIdAndCId(Connection ctn,int ingredientId,int customerId) throws SQLException;
	public List<CartCommodityBean> getByCustomerId(Connection ctn,int customerId) throws SQLException;
}
